package com.huixuebao.after.controller.policy;


import com.huixuebao.after.service.PolicyService;
import com.huixuebao.common.bean.ApiResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("/hxb/after/policy")
public class PolicyController {

    @Autowired
    private PolicyService policyService;

    /**
     * 获取保单列表
     * @param current
     * @param size
     * @param orderId
     * @param merchantsName
     * @param courseName
     * @return
     */
    @GetMapping("/getPolicyList")
    public ApiResult getPolicyList(Integer current,
                                   Integer size,
                                   String orderId,
                                   String merchantsName,
                                   String courseName,
                                   String phone){

        return policyService.getPolicyList(current,size,orderId,merchantsName,courseName,phone);
    }
}
